14 步:循环不再创建猪精灵,但列表显示仍然显示字符串“猪”!

  • 在逻辑中,单击并拖出Update Display
  • 将其放在.remove()下但循环之前。
  • 将 .update .update()中的pet_list my_var

当你运行你的代码,看看舞台上的显示如何不再显示猪!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)